using UnityEngine;

public class StartupPanelController : MonoBehaviour
{
	public GameObject syncing;

	public GameObject loggingIn;

	public GameObject cantReachServer;

	public GameObject versionOutOfDate;

	public void Init()
	{
		syncing.SetActive(true);
		loggingIn.SetActive(false);
		cantReachServer.SetActive(false);
		versionOutOfDate.SetActive(false);
	}

	public void LogIn()
	{
		syncing.SetActive(false);
		loggingIn.SetActive(true);
		cantReachServer.SetActive(false);
		versionOutOfDate.SetActive(false);
	}

	public void DisplayCantReachServer()
	{
		syncing.SetActive(false);
		loggingIn.SetActive(false);
		cantReachServer.SetActive(true);
		versionOutOfDate.SetActive(false);
	}

	public void DisplayVersionOutOfDate()
	{
		syncing.SetActive(false);
		loggingIn.SetActive(false);
		cantReachServer.SetActive(false);
		versionOutOfDate.SetActive(true);
	}

	public void FinishStartup()
	{
		NavigationManager.instance.Pop();
	}

	public void OnQuit()
	{
		BehaviourSingletonInit<SnapshotSyncManager>.instance.syncOnQuit = false;
		BehaviourSingleton<GGApplication>.instance.Quit();
	}

	public void OnContinue()
	{
		FinishStartup();
	}

	public void OnUpdate()
	{
		Debug.Log("TODO");
	}
}
